import api from '@/api';
import { Button } from 'antd';
import React, { useEffect } from 'react';
import { Outlet } from 'react-router-dom';

const HomePage = () => {
  const submit = async () => {
    await api.common.addUserRecord({ test1: 'test1', app_name: 'test2' });
  };
  useEffect(() => {}, []);
  return (
    <div className="w-full h-full">
      <h1>Home</h1>

      <Button onClick={submit}>提交接口</Button>
      <Outlet />
    </div>
  );
};
export default HomePage;
